<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/resources/layout/templateExterno.xhtml"
	xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">
	<ui:define name="body">
		

<h:form id="j_spring_security_check" >

		<h:panelGrid columns="3">
			<div class="grid-1-12">
						<h:outputLabel for="userName" id="lbLogin" class="form-lbl"  value="Login:"/>
						<h:inputText  id="userName" styleClass="form-txt" value="#{loginBean.userName}" />
			</div> 
				<div class="grid-1-12">
						<h:outputLabel for="password" id="lbSenha" class="form-lbl"  value="Senha:"/>
						<h:inputText  id="password"  styleClass="form-txt" value="#{loginBean.password}" />
			</div> 
			<h:outputText value="" />
			<a4j:commandButton id="login" reRender="pgLogin" action="#{loginBean.login}" value="Ok"  />	
	 	</h:panelGrid>
	 	<h:panelGroup id="pgLogin">		
			<div style="float: left" id="errorMessage" >
				<h:messages id="erroAcesso" errorClass="errorMessage" for="login"></h:messages>
			</div>
		</h:panelGroup>
	
</h:form>

</ui:define>
</ui:composition>

